package com.hytc.mymall.base;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

/**
 * Created by allkiss on 2016/12/9
 */

public abstract class BaseFragment extends Fragment
{
    public <T> T $(final View view, final int n) {
        return (T)view.findViewById(n);
    }

    public abstract void initView(final View p0);

    @Override
    public void onViewCreated(final View view, final Bundle bundle) {
        super.onViewCreated(view, bundle);
        this.initView(view);
    }
}
